<template>
	<view class="empty_box" v-if="len < 1" :style="{ 'margin': paddingNum }">
		<image src="@/static/images/icon/empty.png" mode="aspectFit"></image>
		<view class="msg">{{ msg }}</view>
	</view>
</template>

<script>
	export default {
		name: 'EmptyState',
		props: {
			len: {
				type: Number,
				default: 0
			},
			msg: {
				type: String,
				default: '暂无信息'
			},
			paddingNum: {
				type: String,
				default: '110rpx'
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.empty_box {
	width: 100%;
	// height: 260rpx;
	text-align: center;
	
	image {
		width: 200rpx;
		height: 200rpx;
		margin-bottom: 20rpx;
	}
	
	.msg {
		color: $uni-text-color-placeholder;
	}
}
</style>
